<!DOCTYPE html>
<!-- saved from url=(0065)http://www.toutiaopage.com/tetris/page/52202286900/?tag=pc_iframe -->
<html class="wf-iconfont-n4-active wf-active">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="pathname" content="bytecom_tetris">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui">
    <title>一只小红薯报名</title>
    <script type="text/javascript" async="" src="/www/js/toutiao-track-log.tetris.js"></script>
    <script id="globalvar">
        {*GLOBAL_VAR ={"pageIds":[52202286900]}*}
    </script>
    <link rel="stylesheet" type="text/css" href="/www/js/colorA_87eab02.css">
    <link rel="stylesheet" type="text/css" href="/www/js/bootstrap_6229293.css">
    <link rel="stylesheet" type="text/css" href="/www/js/brand_3f5ddbf.css">
    <link rel="stylesheet" type="text/css" href="/www/js/iconfont_0acaebe.css">
    <link rel="stylesheet" type="text/css" href="/www/js/daymode_ae958b1.css">
    <link rel="stylesheet" type="text/css" href="/www/js/image_c703bce.css">
    <link rel="stylesheet" type="text/css" href="/www/js/form_45e7bca.css">
    <link rel="stylesheet" type="text/css" href="/www/js/phone_cc0832c.css">
    <link rel="stylesheet" type="text/css" href="/www/js/default_14cdead.css">
    <script type="text/javascript" charset="utf-8" src="/www/js/toutiao-tetris-analytics-init_ca6e89e.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/tetris-user-action.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/mod_0c5f375.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/zepto_425406d.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/zeptotouch_0877f13.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/webfontloader_df24d4f.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/webfontentry_af058f1.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/daymode_cc472f3.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/base64_b4cc42b.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/user_action_log_32c12f6.js"></script>
</head>
<body>
<div id="csrf"><input type="hidden" name="csrfmiddlewaretoken" value="Z2belseXhHy9gTBmzEkXHNArrtFt4ZP9"></div>
<div id="content">
    <div class="piece image-con" tetris-data-click="" tetris-data-component-type="image" tetris-data-action-type="click"
         style="padding-left: 0px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px;" data-idx="0">
        <div class="image-box">
            <a target="_blank" class="image-link">
                <img class="image-item" src="/www/js/1dd0000b0600d7d48ca3">
            </a>
            <span class="image-text"></span>
        </div>
    </div>

    <div id="user_1" class="piece form-piece" data-idx="1">
        <div class="form-count" data-node="topCount">
            <span class="split-count"></span>
            <span class="count-text" data-node="countTextPre"></span>
            <span class="count-text-num" data-node="countTextNum"></span>
            <span class="count-text" data-node="countTextPos"></span>
            <span class="split-count"></span>
        </div>
        <form  class="form-group-i container-fluid input-style0" >
            <input type="hidden" name="site_id" value="52202286900">
            <input type="hidden" name="ad_id" value="0">

            <input type="hidden" name="csrfmiddlewaretoken" value="Z2belseXhHy9gTBmzEkXHNArrtFt4ZP9">
            <div class="row">
                <input type="hidden" name="label_52202286902" value="您的称呼">
                <div class="input-group-i col-xs-12 col-sm-6 col-md-6 col-lg-6" validate="not_empty">
                    <span class="input-group-addon-i warn-star" id="label">您的称呼</span>
                    <input type="text" class="form-control form-input-i" placeholder="" name="nickname_1">
                </div>
                <input type="hidden" name="label_52202286903" value="联系电话">
                <div class="input-group-i col-xs-12 col-sm-6 col-md-6 col-lg-6" validate="not_empty">
                    <span class="input-group-addon-i warn-star" id="label">联系电话</span>
                    <input type="text" class="form-control form-input-i" placeholder="" name="mobile_1">
                </div>
            </div>
            <div class="row"><input type="hidden" name="label_52202286904" value="加盟意向">
                <div class="selectMulti-group col-xs-12 col-sm-6 col-md-6 col-lg-6"
                     data-select="&quot;tree&quot;:&quot;text&quot;:&quot;&quot;,&quot;children&quot;:[&quot;text&quot;:&quot;单店加盟&quot;},&quot;text&quot;:&quot;区域代理&quot;}]},&quot;deep&quot;:1,&quot;arrObj&quot;:&quot;0&quot;:&quot;text&quot;:&quot;&quot;,&quot;pid&quot;:0,&quot;id&quot;:0,&quot;sid&quot;:[&quot;0-1&quot;,&quot;0-2&quot;]},&quot;0-1&quot;:&quot;text&quot;:&quot;单店加盟&quot;,&quot;pid&quot;:0,&quot;id&quot;:&quot;0-1&quot;,&quot;sid&quot;:[]},&quot;0-2&quot;:&quot;text&quot;:&quot;区域代理&quot;,&quot;pid&quot;:0,&quot;id&quot;:&quot;0-2&quot;,&quot;sid&quot;:[]}}}">
                    <span class="select-addon warn-star" id="label">加盟意向</span>
                    <input class="multi-select" value="" name="52202286904" data-value="&quot;1&quot;:&quot;null&quot;}">
                    <div class="selectMulti-wrapper">
                        <div class="select-wrapper select-list1 showing">
                            <select name="intention_1" id="intention_1" class="form-control">
                                <option data-id="0" value="">--请选择--</option>
                                <option data-id="0-1" value="1">单店加盟</option>
                                <option data-id="0-2" value="2">区域代理</option>
                            </select>
                        </div>
                    </div>
                </div>
                <input type="hidden" name="label_52202286905" value="意向城市">
                <div class="city-group col-xs-12 col-sm-6 col-md-6 col-lg-6 need-serialize" name="52202286905"><span
                            class="city-addon warn-star">意向城市</span>
                    <div class="row">
                        <div class="col-xs-6 city-group-province">
                            <select required class="form-control" name="pro1" id="pro1" onchange="cityData('pro1', 'city1')">
                                {foreach Service_User::getProvince() as $k => $v}
                                    <option  value="{$v['code']}">{$v['name']}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="col-xs-6 city-group-city">
                            <select  class="form-control" name="city1" id="city1">
                                <option selected value="">请选择所在的城市</option>
                                <option  value="110100">北京市</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row"><input type="hidden" name="label_52202286906" value="提交">
                <div class="input-group-i col-xs-12 col-sm-offset-3 col-sm-6 col-md-offset-3 col-md-6 col-lg-offset-3 col-lg-6">
                    <div class="el-result" id="submit-result"></div>
                    <button class="btn-i form_user_1" type="submit" style="border-radius:4px;height:42px;color:#fff">提交</button>
                    <input type="reset" style="display:none;" id="reset"></div>
            </div>
        </form>
        <div class="form-count" data-node="bottomCount">
            <span class="split-count"></span>
            <span class="count-text" data-node="countTextPre"></span>
            <span class="count-text-num" data-node="countTextNum"></span>
            <span class="count-text" data-node="countTextPos"></span>
            <span class="split-count"></span>
        </div>
    </div>

    <div class="piece image-con" tetris-data-click="" tetris-data-component-type="image" tetris-data-action-type="click"
         style="padding-left: 0px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px;" data-idx="2">
        <div class="image-box">
            <a target="_blank" class="image-link">
                <img class="image-item" src="/www/js/1dd40001f46c21022616">
            </a>
            <span class="image-text"></span>
        </div>
    </div>

    <div id="user_2" class="piece form-piece" data-idx="3">
        <div class="form-count" data-node="topCount">
            <span class="split-count"></span>
            <span class="count-text" data-node="countTextPre"></span>
            <span class="count-text-num" data-node="countTextNum"></span>
            <span class="count-text" data-node="countTextPos"></span>
            <span class="split-count"></span>
        </div>
        <form class="form-group-i container-fluid input-style0">
            <input type="hidden" name="site_id" value="52202286900">
            <input type="hidden" name="ad_id" value="0">

            <input type="hidden" name="csrfmiddlewaretoken" value="Z2belseXhHy9gTBmzEkXHNArrtFt4ZP9">
            <div class="row"><input type="hidden" name="label_52202286902" value="您的称呼">
                <div class="input-group-i col-xs-12 col-sm-6 col-md-6 col-lg-6" validate="not_empty">
                    <span class="input-group-addon-i warn-star" id="label">您的称呼</span>
                    <input type="text" class="form-control form-input-i" placeholder="" name="nickname_2">
                </div>
                <input type="hidden" name="label_52202286903" value="联系电话">
                <div class="input-group-i col-xs-12 col-sm-6 col-md-6 col-lg-6" validate="not_empty">
                    <span class="input-group-addon-i warn-star" id="label">联系电话</span>
                    <input type="text" class="form-control form-input-i" placeholder="" name="mobile_2">
                </div>
            </div>
            <div class="row"><input type="hidden" name="label_52202286904" value="加盟意向">
                <div class="selectMulti-group col-xs-12 col-sm-6 col-md-6 col-lg-6"
                     data-select="&quot;tree&quot;:&quot;text&quot;:&quot;&quot;,&quot;children&quot;:[&quot;text&quot;:&quot;单店加盟&quot;},&quot;text&quot;:&quot;区域代理&quot;}]},&quot;deep&quot;:1,&quot;arrObj&quot;:&quot;0&quot;:&quot;text&quot;:&quot;&quot;,&quot;pid&quot;:0,&quot;id&quot;:0,&quot;sid&quot;:[&quot;0-1&quot;,&quot;0-2&quot;]},&quot;0-1&quot;:&quot;text&quot;:&quot;单店加盟&quot;,&quot;pid&quot;:0,&quot;id&quot;:&quot;0-1&quot;,&quot;sid&quot;:[]},&quot;0-2&quot;:&quot;text&quot;:&quot;区域代理&quot;,&quot;pid&quot;:0,&quot;id&quot;:&quot;0-2&quot;,&quot;sid&quot;:[]}}}">
                    <span class="select-addon warn-star" id="label">加盟意向</span>
                    <input class="multi-select" value="" name="52202286904" data-value="&quot;1&quot;:&quot;null&quot;}">
                    <div class="selectMulti-wrapper">
                        <div class="select-wrapper select-list1 showing">
                            <select name="intention_2" class="form-control">
                                <option data-id="0" value="">--请选择--</option>
                                <option data-id="0-1" value="1">单店加盟</option>
                                <option data-id="0-2" value="2">区域代理</option>
                            </select>
                        </div>
                    </div>
                </div>
                <input type="hidden" name="label_52202286905" value="意向城市">
                <div class="city-group col-xs-12 col-sm-6 col-md-6 col-lg-6 need-serialize" name="52202286905"><span
                            class="city-addon warn-star">意向城市</span>
                    <div class="row">
                        <div class="col-xs-6 city-group-province">
                            <select required class="form-control"  name="pro2" id="pro2" onblur="cityData('pro2','city2')">
                                {foreach Service_User::getProvince() as $k => $v}
                                    <option  value="{$v['code']}">{$v['name']}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="col-xs-6 city-group-city">
                            <select required class="form-control" name="city2" id="city2">
                                <option selected value="">请选择所在的城市</option>
                                <option  value="110100">北京市</option>
                            </select></div>
                    </div>
                </div>
            </div>
            <div class="row"><input type="hidden" name="label_52202286906" value="提交">
                <div class="input-group-i col-xs-12 col-sm-offset-3 col-sm-6 col-md-offset-3 col-md-6 col-lg-offset-3 col-lg-6">
                    <div class="el-result" id="submit-result"></div>
                    <button class="btn-i form_user_2" type="submit" style="border-radius:4px;height:42px;color:#fff">提交</button>
                    <input type="reset" style="display:none;" id="reset"></div>
            </div>
        </form>
        <div class="form-count" data-node="bottomCount">
            <span class="split-count"></span>
            <span class="count-text" data-node="countTextPre"></span>
            <span class="count-text-num" data-node="countTextNum"></span>
            <span class="count-text" data-node="countTextPos"></span>
            <span class="split-count"></span>
        </div>
    </div>


    <div class="create-left-content"></div>
    <div class="create-right-content">
        <button type="button" class="btn btn-jump"></button>
        <button type="button" class="btn btn-jump" style="display: block;"></button>
        <div class="piece phone-pos fbottom-right" data-idx="4">
            <a class="tel-btn tel-btn-brick_15 style3" href="tel:4006920731" data-tel="4006920731" tt-data=""
               -eventvalue="4006920731"
               style="width: 56px; height: 56px; line-height: 44px; border-radius: 50%; background-color: !important; margin-top: 0; margin-bottom: 0;">
                <i class="icon-telphone_left"></i><span class="tel-label">立即拨打</span>
                <i class="icon-telphone_right"></i>
                <i class="icon-telphone_circle"></i>
                <i class="icon-left_arrow"></i>
            </a>
        </div>
    </div>
</div>
<div id="footer">
    <script type="text/javascript" charset="utf-8" src="/www/js/linkevent_e86a3e3.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/mul_page_sslocal_patch_99c1f2b.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/brand_5c24ce2.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/_image_9641f56.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/_form_e5d278b.js"></script>
    <script type="text/javascript" charset="utf-8" src="/www/js/_phone_85fc453.js"></script>
    <script type="text/javascript">
        var IMG = require("tetris/parse/_image.js");
        IMG.init(".image-con");
    </script>
    <script type="text/javascript">
        var FORM = require("tetris/parse/_form.js");
        FORM.init("#8334b1d5_cb9ee2d0_8d64575e", "0", "", "", "", "false", "目前已经有计数人参与活动", "0", "0", "1", "52202286901");
    </script>
    <script type="text/javascript">
        var FORM = require("tetris/parse/_form.js");
        FORM.init("#654ad9d5_f363e277_1c179a30", "1", "", "", "", "false", "目前已经有计数人参与活动", "0", "0", "1", "52202286901");
    </script>
    <script type="text/javascript">
        var Phone = require("tetris/parse/_phone.js");
        Phone.init('.tel-btn-brick_15');
    </script>

    <script type="text/javascript">
        function cityData(pro, city){
            var pro_code= $('#'+pro).val();
            $.ajax({
                type: 'get',
                url: 'http://{$formUrl}/public/getCity',
                dataType: "jsonp",
                jsonp: "callback",
                jsonpCallback:"flightHandler",
                async: false,
                data: {
                    pro_code: pro_code
                },
                success: function (data) {
                    $("#" + city).empty();
                    if(data.status == 200){
                        var count = data.data.length;
                        var b="<option selected='selected' value='' >请选择所在的城市</option>";
                        for(i=0;i<count;i++){
                            b+="<option value='" + data.data[i]["code"] + "'>" + data.data[i]["name"] + "</option>";
                        }
                        $("#" + city).append(b);
                    }else {
                        var b="<option selected='selected' value='' >请选择所在的城市</option>";
                        $("#" + city).append(b);
                    }

                },
                error: function () {
                    alert('编辑错误！');
                }
            })

        }


        $('button.form_user_1').click(function (e) {
            var $formEl = $('#user_1');
            var $userEl=$formEl.find('input[name="nickname_1"]'),nickname=$userEl.val();
            var $mobileE1=$formEl.find('input[name="mobile_1"]'),mobile=$mobileE1.val();
            var intentionE1 = $("select[name='intention_1']");
            var proE1 = $("select[name='pro1']");
            var cityE1=$("select[name='city1']");
            var intention = intentionE1.val();
            var pro = proE1.val();
            var city = cityE1.val();
            var domain = document.domain;


            if(nickname.length == 0  ){
                alert("称呼不能为空");
                return false;
            }
            //手机号码验证
            if(mobile.length == 0  ){
                alert("注册手机号不能为空");
                return false;
            }
            if(mobile.length!=11)
            {
                alert('请输入有效的手机号码！');
                return false;
            }
            if(!(/^1[34578]\d\d\d\d\d\d\d\d\d$/.test(mobile))){
                alert("手机号码有误，请重填");
                return false;
            }
            if(intention < 1){
                alert('请选择加盟意向!');
                return false;
            }
            $.ajax({
                type: 'get',
                url: 'http://{$formUrl}/public/userOrderDeal',
                dataType: "jsonp",
                jsonp: "callback",
                jsonpCallback:"flightHandler",
                async: false,
                data:{
                    nickname:nickname,
                    mobile:mobile,
                    intention:intention,
                    province:pro,
                    domain:domain,
                    city:city
                },
                success:function (result) {
//                    alert("success");
                    if(result.status == 200){
                        alert(result.data);
                    }else {
                        alert(result.error);
                    }

                },
                error:function (result) {
                    layer.msg('服务器异常，请稍候再试！');
                }
            });

        });



        $('button.form_user_2').click(function (e) {
            var $formEl = $('#user_2');
            var $userEl=$formEl.find('input[name="nickname_2"]'),nickname=$userEl.val();
            var $mobileE1=$formEl.find('input[name="mobile_2"]'),mobile=$mobileE1.val();
            var intentionE1 = $("select[name='intention_2']");
            var proE1 = $("select[name='pro2']");
            var cityE1=$("select[name='city2']");
            var intention = intentionE1.val();
            var pro = proE1.val();
            var city = cityE1.val();
            var domain = document.domain;


            if(nickname.length == 0  ){
                alert("称呼不能为空");
                return false;
            }
            //手机号码验证
            if(mobile.length == 0  ){
                alert("注册手机号不能为空");
                return false;
            }
            if(mobile.length!=11)
            {
                alert('请输入有效的手机号码！');
                return false;
            }
            if(!(/^1[34578]\d\d\d\d\d\d\d\d\d$/.test(mobile))){
                alert("手机号码有误，请重填");
                return false;
            }
            if(intention < 1){
                alert('请选择加盟意向!');
                return false;
            }
//            alert(nickname);
            $.ajax({
                type: 'get',
                url: 'http://{$formUrl}/public/userOrderDeal',
                dataType: "jsonp",
                jsonp: "callback",
                jsonpCallback:"flightHandler",
                async: false,
                data:{
                    nickname:nickname,
                    mobile:mobile,
                    intention:intention,
                    province:pro,
                    domain:domain,
                    city:city
                },
                success:function (result) {
//                    alert("success");
                    if(result.status == 200){
                        alert(result.data);
                    }else {
                        alert(result.error);
                    }

                },
                error:function (result) {
                    layer.msg('服务器异常，请稍候再试！');
                }
            })
        });


    </script>

</div>
<div class="tt-brand">
    <div class="brandtest"></div>
    <div class="text"><span class="">今日头条建站，免费制作您的移动站点</span></div>
</div>
</body>
<iframe id="__ToutiaoJSBridgeIframe_SetResult" style="display: none;" src="/www/js/saved_resource(1).html"></iframe>
<iframe id="__ToutiaoJSBridgeIframe" style="display: none;" src="/www/js/saved_resource(2).html"></iframe>
</html>